import { history } from "umi";

export function render(oldRender: any) {
  oldRender();
}

export function onRouteChange({ location, routes, action }: any) {
  console.log(location, routes, action);
}

export async function getInitialState() {
  return {
    name: "张三",
    age: "22"
  };
}
